<?php
/**
 *
 * PHP 5
 *
 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
 * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
 *
 * Licensed under The MIT License
 * Redistributions of files must retain the above copyright notice.
 *
 * @copyright     Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
 * @link          http://cakephp.org CakePHP(tm) Project
 * @package       Cake.View.Layouts
 * @since         CakePHP(tm) v 0.10.0.1076
 * @license       MIT License (http://www.opensource.org/licenses/mit-license.php)
 */
?>
<!DOCTYPE html>
<html>
<head>
    <?php echo $this->Html->charset(); ?>
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>
        <?php echo $title_for_layout; ?>
    </title>
    <?php
    echo $this->Html->meta('icon');
    echo $this->Html->css('style.default');
    //echo $this->Html->css('style.yellow');
    echo $this->Html->css('responsive-tables');

    echo $this->Html->script('jquery-1.9.1.min.js');
    echo $this->Html->script('plugins/jquery-migrate-1.1.1.min.js');
    echo $this->Html->script('plugins/jquery-ui-1.9.2.min.js');
    echo $this->Html->script('plugins/prettify/prettify.js');
    echo $this->Html->script('plugins/modernizr.min.js');
    echo $this->Html->script('bootstrap.min.js');
    echo $this->Html->script('plugins/bootstrap-timepicker.min.js');
    echo $this->Html->script('plugins/jquery.jgrowl.js');
    echo $this->Html->script('plugins/jquery.alerts.js');
    echo $this->Html->script('plugins/jquery.cookie.js');
    echo $this->Html->script('plugins/jquery.uniform.min.js');
    echo $this->Html->script('plugins/jquery.maskedinput-1.3.min.js');
    //echo $this->Html->script('plugins/flot/jquery.flot.min.js');
    //echo $this->Html->script('plugins/flot/jquery.flot.resize.min.js');
    echo $this->Html->script('plugins/responsive-tables.js');
    echo $this->Html->script('custom.js');
    ?>
    <!--[if lte IE 8]><?php  echo $this->Html->script('plugins/excanvas.min.js'); ?><![endif]-->
    <?php
    echo $this->Html->script('jLib.js');
    $user_type = $authUser['user_type'];
    if($user_type == 'service_adviser'){
        echo $this->Html->script('scripts/service_advisers/service_adviser_lib.js');
    }
    echo $scripts_for_layout;
    ?>
</head>
<body>
    <div class="mainwrapper">
        <?php echo $this->element('loader'); ?>
        <?php echo $this->element('header'); ?>
        <?php echo $this->element('leftpanel'); ?>
        <div class="rightpanel">
            <?php echo $this->element('breadcrumbs'); ?>
            <?php echo $this->element('pageheader'); ?>
            <div class="maincontent">
                <div class="maincontentinner">
                    <?php echo $this->fetch('content'); ?>
                    <?php echo $this->element('footer'); ?>
                </div><!--maincontentinner-->
            </div><!--maincontent-->
        </div><!--rightpanel-->
    </div><!--mainwrapper-->
    <?php //echo $this->element('sql_dump'); ?>
    <!-- URL FOR SERVICE ADVISERS ONLY -->
    <input type="hidden" id="check-reminder-url" value="<?php echo $this->Html->url(array('controller' => 'ServiceAdviser', 'action' => 'check_reminders')); ?>" />
</body>
</html>
